package com.humi.partner.manager.model.partnerType;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.humi.cloud.common.annotation.OBSFile;
import com.humi.cloud.common.utils.DateUtil;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @Auther: lishijie
 * @Date: 2019/10/11 10:59
 * @Description:Codes are far away from bugs with the animal protecting
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class PartnerTypeListQueryRequest  {

    @ApiModelProperty(value = "  *")
    private static final long serialVersionUID = -7444862584825481149L;

    @ApiModelProperty(value = "伙伴类型id")
    private String id;

    @ApiModelProperty(value = "每页大小【查询必填】", position = -1001, example = "10")
    Integer size= 10;

    @ApiModelProperty(value = "当前页码", position = -1000, example = "1")
    Integer current= 1;


    @ApiModelProperty(value = "伙伴类型 ")
    private String  partnerName;

    @ApiModelProperty(value = "描述 ")
    private String  partnerDescribe;

    @ApiModelProperty(value = "最后修改人:新增和修改时插入，默认sys. ")
    protected String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后修改时间",example = "2019-10-11 11:22:00")
    protected Date updateTime;

    @ApiModelProperty(notes = "加入条件")
    private String  joinCondition;

    @OBSFile
    @ApiModelProperty(notes = "icon")
    private String  partnerIcon;

    @ApiModelProperty(value = "是否启用：0停用；1启用 ")
    private Integer  useFlag;

    /** 使用次数  */
    @ApiModelProperty(value = "使用次数:0：没使用过；1：加入了伙伴类型，不可删只能停止启用；")
    private Integer  useCount;

}
